home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / games / nhak_src.zip / COMPACT.LAT < prev    next >
Text File  |  1993-03-16  |  6KB  |  141 lines

  1. ;    NetHack header compacting script for Lattice C on Amiga.
  2. ;    SCCS Id: @(#)compact.lat    3.0    90/02/18
  3. ;
  4. ; This script will compact the NetHack header files onto the Ram: disk for
  5. ; Lattice 5.04 on the Amiga.  To use this script, perform the assignments
  6. ; mentioned in Makefile.ami (specifically, assign Incl: to the directory
  7. ; with the NetHack include files).  Make the changes to the header files
  8. ; according to the directions in Install.ami.  Then, invoke this script
  9. ; with:
  10. ;
  11. ;    execute Amiga:compact.lat
  12. ;
  13. ; When completed, this script will have created the directory Ram:Incl
  14. ; which will contain the output from using lcompact on the header files.
  15. ; The script will have also assigned Incl: to Ram:Incl.  The files stored
  16. ; in Ram:Incl will take on the order of 120K.
  17. ;
  18. ; Note:  Using this script effectively causes the entire NetHack source
  19. ; to be re-compiled because the dates on the header files (the lcompact'd
  20. ; versions in Ram:Incl) will be later the any existing object files.
  21. ; This is inconsequential for the first compile, however, since everything
  22. ; needs to be compiled anyway.  The time savings are significant.  For
  23. ; subsequent compiles (for anyone making custom changes), this problem
  24. ; can be circumvented by copying the contents of Ram:Incl to a more
  25. ; permanant storage device (using copy's clone option).  Changes to the
  26. ; text-editable header files need to be propagated through use of lcompact
  27. ; as appropriate.
  28. ;
  29. ; [For the curious:  Two files (hack.h and system.h) cannot be compacted
  30. ; properly with the version of lcompact that comes with Lattice C 5.04.
  31. ; Constructs like '#define Foo (void)foo' get transformed as if they were
  32. ; '#define Foo(void) foo'.  One file (trap.h) cannot be compacted becuase
  33. ; makedefs needs to read and modify it.  Three files (date.h, onames.h,
  34. ; and pm.h) are created within Makefile.ami by makedefs.]
  35.  
  36. makedir Ram:Incl
  37. echo "Compacting amiconf.h"
  38. lcompact < Incl:amiconf.h > Ram:Incl/amiconf.h
  39. echo "Compacting artifact.h"
  40. lcompact < Incl:artifact.h > Ram:Incl/artifact.h
  41. echo "Compacting attrib.h"
  42. lcompact < Incl:attrib.h > Ram:Incl/attrib.h
  43. echo "Compacting color.h"
  44. lcompact < Incl:color.h > Ram:Incl/color.h
  45. echo "Compacting config.h"
  46. lcompact < Incl:config.h > Ram:Incl/config.h
  47. echo "Compacting coord.h"
  48. lcompact < Incl:coord.h > Ram:Incl/coord.h
  49. echo "Compacting decl.h"
  50. lcompact < Incl:decl.h > Ram:Incl/decl.h
  51. echo "Compacting edog.h"
  52. lcompact < Incl:edog.h > Ram:Incl/edog.h
  53. echo "Compacting epri.h"
  54. lcompact < Incl:epri.h > Ram:Incl/epri.h
  55. echo "Compacting eshk.h"
  56. lcompact < Incl:eshk.h > Ram:Incl/eshk.h
  57. echo "Compacting extern.h"
  58. lcompact < Incl:extern.h > Ram:Incl/extern.h
  59. echo "Compacting flag.h"
  60. lcompact < Incl:flag.h > Ram:Incl/flag.h
  61. echo "Compacting func_tab.h"
  62. lcompact < Incl:func_tab.h > Ram:Incl/func_tab.h
  63. echo "Compacting global.h"
  64. lcompact < Incl:global.h > Ram:Incl/global.h
  65. echo "Compacting gold.h"
  66. lcompact < Incl:gold.h > Ram:Incl/gold.h
  67. echo "Compacting lev.h"
  68. lcompact < Incl:lev.h > Ram:Incl/lev.h
  69. echo "Compacting lev_comp.h"
  70. lcompact < Incl:lev_comp.h > Ram:Incl/lev_comp.h
  71. echo "Compacting macconf.h"
  72. lcompact < Incl:macconf.h > Ram:Incl/macconf.h
  73. echo "Compacting mfndpos.h"
  74. lcompact < Incl:mfndpos.h > Ram:Incl/mfndpos.h
  75. echo "Compacting mkroom.h"
  76. lcompact < Incl:mkroom.h > Ram:Incl/mkroom.h
  77. echo "Compacting monattk.h"
  78. lcompact < Incl:monattk.h > Ram:Incl/monattk.h
  79. echo "Compacting mondata.h"
  80. lcompact < Incl:mondata.h > Ram:Incl/mondata.h
  81. echo "Compacting monflag.h"
  82. lcompact < Incl:monflag.h > Ram:Incl/monflag.h
  83. echo "Compacting monst.h"
  84. lcompact < Incl:monst.h > Ram:Incl/monst.h
  85. echo "Compacting monsym.h"
  86. lcompact < Incl:monsym.h > Ram:Incl/monsym.h
  87. echo "Compacting msdos.h"
  88. lcompact < Incl:msdos.h > Ram:Incl/msdos.h
  89. echo "Compacting obj.h"
  90. lcompact < Incl:obj.h > Ram:Incl/obj.h
  91. echo "Compacting objclass.h"
  92. lcompact < Incl:objclass.h > Ram:Incl/objclass.h
  93. echo "Compacting patchlevel.h"
  94. lcompact < Incl:patchlevel.h > Ram:Incl/patchlevel.h
  95. echo "Compacting pcconf.h"
  96. lcompact < Incl:pcconf.h > Ram:Incl/pcconf.h
  97. echo "Compacting permonst.h"
  98. lcompact < Incl:permonst.h > Ram:Incl/permonst.h
  99. echo "Compacting prop.h"
  100. lcompact < Incl:prop.h > Ram:Incl/prop.h
  101. echo "Compacting rm.h"
  102. lcompact < Incl:rm.h > Ram:Incl/rm.h
  103. echo "Compacting sp_lev.h"
  104. lcompact < Incl:sp_lev.h > Ram:Incl/sp_lev.h
  105. echo "Compacting spell.h"
  106. lcompact < Incl:spell.h > Ram:Incl/spell.h
  107. echo "Compacting termcap.h"
  108. lcompact < Incl:termcap.h > Ram:Incl/termcap.h
  109. echo "Compacting tosconf.h"
  110. lcompact < Incl:tosconf.h > Ram:Incl/tosconf.h
  111. echo "Compacting tradstdc.h"
  112. lcompact < Incl:tradstdc.h > Ram:Incl/tradstdc.h
  113. echo "Compacting trampoli.h"
  114. lcompact < Incl:trampoli.h > Ram:Incl/trampoli.h
  115. echo "Compacting unixconf.h"
  116. lcompact < Incl:unixconf.h > Ram:Incl/unixconf.h
  117. echo "Compacting vault.h"
  118. lcompact < Incl:vault.h > Ram:Incl/vault.h
  119. echo "Compacting vmsconf.h"
  120. lcompact < Incl:vmsconf.h > Ram:Incl/vmsconf.h
  121. echo "Compacting wseg.h"
  122. lcompact < Incl:wseg.h > Ram:Incl/wseg.h
  123. echo "Compacting you.h"
  124. lcompact < Incl:you.h > Ram:Incl/you.h
  125. echo "Compacting youprop.h"
  126. lcompact < Incl:youprop.h > Ram:Incl/youprop.h
  127. echo "Copying hack.h"
  128. copy Incl:hack.h Ram:Incl/hack.h
  129. echo "Copying system.h"
  130. copy Incl:system.h Ram:Incl/system.h
  131. echo "Copying trap.h"
  132. copy Incl:trap.h Ram:Incl/trap.h
  133. echo "Creating empty date.h"
  134. echo > Ram:Incl/date.h NOLINE
  135. echo "Creating empty onames.h"
  136. echo > Ram:Incl/onames.h NOLINE
  137. echo "Creating empty pm.h"
  138. echo > Ram:Incl/pm.h NOLINE
  139. echo "Assigning Incl: to Ram:Incl"
  140. assign Incl: Ram:Incl
  141.